package fr.sharpe.app.earthvisualizationproject.ui;

import gov.nasa.worldwind.util.StatisticsPanel;
import gov.nasa.worldwind.util.StatusBar;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;


public class Stats extends JFrame{

	private StatisticsPanel statsPanel;
	private StatusBar statusBar;

	public Stats()
	{
		this.setTitle("Statistics");
		this.setPreferredSize(new Dimension(600, 500));
		this.setMinimumSize(new Dimension(600, 500));
		this.statsPanel = new StatisticsPanel(Earth.getInstance().getWwd(), new Dimension(600, 500));
		this.add(this.statsPanel);
		
		this.statusBar = new StatusBar();
        this.add(statusBar, BorderLayout.PAGE_END);
        this.statusBar.setEventSource(Earth.getInstance().getWwd());
	}
}
